package es.ubu.ceudaaj.exercise.ud02.t04.l03;

import java.io.IOException;
import java.util.ArrayList;

/**
 * Fachada para las diferentes clases AGENDA
 * @author usuario
 *
 */
public interface Agenda {
	public ArrayList<GUIDataModel> listContacts();
	public void loadXML();
	public boolean saveXML();
	public void createNewContact(GUIDataModel gdm) throws IOException;
	public GUIDataModel printContactDetail(int index) throws IOException;
	public boolean editContact(GUIDataModel gdm) throws IOException;
	public void deleteContact(int index) throws IOException;
	public ArrayList<GUIDataModel> searchByName(String name);
	public ArrayList<GUIDataModel> searchByJob(String job);
	public ArrayList<GUIDataModel> searchByPostalCode(String postalCode);
}
